package net.togogo.annotation;

//切面类

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect  //声明切面
public class AnnotationAspect {

    //配置切面关系
    @Before(value = "execution(* net.togogo.annotation.UserDao.*(..))")
    public void beforeMethod(){
        System.out.println("===========日志记录开始AnnotationAspect.beforeMethod()=============");
    }
}
